package org.lztvn.elearning.service;

import java.util.List;

import org.lztvn.elearning.dao.ICommandLineDao;
import org.lztvn.elearning.entities.CommandeLine;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public class CommandLineServiceImpl implements ICommandLineService {
     private ICommandLineDao dao;

     
     
	public ICommandLineDao getDao() {
		return dao;
	}

	public void setDao(ICommandLineDao dao) {
		this.dao = dao;
	}

	@Override
	public Long addCommandLine(CommandeLine c) {
		// TODO Auto-generated method stub
		return dao.addCommandLine(c)      ;
	}

	@Override
	public void deleteCommandLine(Long idCom) {
		dao.deleteCommandLine(idCom);
		
	}

	@Override
	public void modifierCommandLine(CommandeLine c) {
		dao.modifierCommandLine(c);
		
	}

	@Override
	public List<CommandeLine> listCommandLine() {
		
		return dao.listCommandLine();
	}

	@Override
	public CommandeLine getCommandLine(Long idCom) {
		return dao.getCommandLine(idCom);
	}

	@Override
	public List<CommandeLine> listCommandLineByCmdId(Long idCmd, int position,
			int nb_com) {
		// TODO Auto-generated method stub
		return dao.listCommandLineByCmdId(idCmd, position, nb_com);
	}
     
     
}
